import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Map;

/**
 * Description:
 *
 * @Autor: Rolin
 * datetime: 05-20-11:44
 */
public class DataListener extends AnalysisEventListener<DataTestRead> {

    //一行一行得读取excel表格中的内容,除表头外
    @Override
    public void invoke(DataTestRead dataTestRead, AnalysisContext analysisContext) {
        System.out.println("学生数据："+dataTestRead);

    }

    //读取表头中的信息
    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        System.out.println("表头字段："+headMap);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
